Week 6
Milestones
- Added a controller with endpoint as _jwt in user application.
- Added java-jwt library as dependency in user application.
- Generated a jwt token from the username and password received in the request body.
- Implemented post mapping of the controller to retrieve jwt-token by using DIGIT's API.
- Wrote a documentation on java-jwt library and its working.
Screenshots / Videos
Contributions
- https://github.com/egovernments/Digit-Core/commit/a4107e15310766d95d1e52b437fc04b8cadac405
- https://github.com/egovernments/Digit-Core/pull/134
Learnings
- Learned about various contents of JWT such as creating, parsing and validating the same.
- Worked with several JWT claims and validating its purpose.
- Learned about JWT Algorithms along with token expiration and refreshing.
- Learned about the security considerations while implementing it as a strong and secure key or private key for sining tokens.